1 Comparison of APIs for Google, Baidu, NetEase, and Sina short website servicesThe API interface of Baidu short website is completely open to the outside world. Users do not need to apply for the APPKEY of the open platform or use the OAuth
The idea and Method (recommended) for php to generate short URLs and the implementation of using php to generate short URLs. The idea of generating a short URL: If you have restored the short URL, do you know what it looks like? For example:
PHP short URL Super simple code
System environment:
Php,apache2,linux
To generate the PHP short URL operation:
Copy the code to index.php in a two-level directory with only 1 characters (such as U) as the folder name.
To add write permissions for
(Echowww.laruence.com201102131870.html of PHP for acceleration) you may have noticed that when ECHO is used in PHP to output a large string, the execution time will be significantly long, so some friends may think that PHP's ECHO performance is very
(Echowww.laruence.com201102131870.html of PHP for acceleration) you may have noticed that when ECHO is used in PHP to output a large string, the execution time will be significantly long, so some friends may think that PHP's ECHO performance is very
Using PHP to generate a short url scheme the normal url with parameters may be very long, especially if we need to print paper products such as enterprise brochure to print a long url, it is very ugly, in addition, few people will remember this
(Transfer) accelerate PHP's ECHOhttp: // redirect (transfer) accelerate PHP's ECHO
Http://www.laruence.com/2011/02/13/1870.html
You may have noticed that when using ECHO in PHP to output a large string, the execution time is obviously long, and
The short URL algorithm implemented by php theoretically supports 1,073,741,824 short URLs.
Each URL is replaced by 6 characters, and (6 ^ 32) can have up to 1,073,741,824 short URLs.Of course, you can also record more detailed information, such as
Acceleration of php echo [turn] Author: Laruence address: http://www.laruence.com/2011/02/13/1870.html reprint please indicate the source
You may have noticed that when using ECHO in PHP to output a large string, the execution time is obviously
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.